/*
  The main source file, entry point of the application
  
  Develop Master project on the web:
  http://code.google.com/p/developmaster

  (C) 2009 Vasiliy Chekurov
*/

#ifdef _WINDOWS
#include "main_win32.h"
#endif

#include "kernel.h"


#ifdef _WINDOWS
#define _DEVELOP_MASTER_PARAMS hInstance, prevInstance, lpCmdLine, nCmdShow
int WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int nCmdShow)
{
#else
#define _DEVELOP_MASTER_PARAMS int argc, const char** argv
int main(int argc, const char** argv)
{
#endif

  Kernel kernel;

  if ( kernel.Open( _DEVELOP_MASTER_PARAMS ) )
	{
    kernel.Run();
    kernel.Close();
	}

  return 0;
}
